package com.stormrage.entity.student.req;

import java.io.Serializable;

import org.springframework.web.multipart.MultipartFile;

public class AvatarReq implements Serializable {

	// ------------------------------- Fields -------------------------------

	private static final long serialVersionUID = -6516163177759386423L;

	// ------------------------------- Fields -------------------------------

	public Integer acctId;

	public String path;

	public MultipartFile file;

	// ------------------------------- Fields -------------------------------

	public AvatarReq() {
	}

	// ------------------------------- Fields -------------------------------

	public Integer getAcctId() {
		return acctId;
	}

	public void setAcctId(Integer acctId) {
		this.acctId = acctId;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public MultipartFile getFile() {
		return file;
	}

	public void setFile(MultipartFile file) {
		this.file = file;
	}

	// ------------------------------- Fields -------------------------------

	public static AvatarReq instance(Integer acctId, String path, MultipartFile file) {
		AvatarReq entity = new AvatarReq();
		entity.setAcctId(acctId);
		entity.setPath(path);
		entity.setFile(file);
		return entity;
	}

	@Override
	public String toString() {
		return this.getClass() + " : acctId - " + acctId + " path - " + path + " file - " + file;
	}

}
